﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Fastyou.WCF.Contracts;
using System.Threading;

namespace Fastyou.WCF.ServiceLib
{
    // NOTE: If you change the class name "IsOneWay" here, you must also update the reference to "IsOneWay" in App.config.
    public class RequestReply : IRequestReply
    {
        #region IIsOneWay Members

        public void NoneReturnValue()
        {
            Thread.Sleep(1000);
            Console.WriteLine("This is not return value");
        }

        public string GetReturnValue(string value)
        {
            return string.Format("Hello {0},this is return value", value);
        }

        #endregion
    }
}
